<?php
/**
 * @author Demianchuk Dmitro
 * @email d.demianchuk@gmail.com
 * @date 25.01.12
 * @version 1.0
 * @package application.components
 */

class PhpAuthManager extends CPhpAuthManager{
	public function init(){
		if($this->authFile===null){
			$this->authFile=Yii::getPathOfAlias('application.config.auth').'.php';
		}

		parent::init();

		if(!Yii::app()->user->isGuest){
			$this->assign(Yii::app()->user->role, Yii::app()->user->id);
		}
	}
}